package cn.kpt.dao.itripcomment;


import cn.kpt.beans.pojo.ItripComment;
import cn.kpt.beans.vo.comment.ItripListCommentVO;
import cn.kpt.beans.vo.comment.ItripScoreCommentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItripCommentMapper {

	public ItripComment getItripCommentById(@Param(value = "id") Long id)throws Exception;


	public List<ItripComment>	getItripCommentListByMap(Map<String, Object> param)throws Exception;

	/**
	 * 根据酒店id查询各类评论数量
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public Integer getItripCommentCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertItripComment(ItripComment itripComment)throws Exception;

	public Integer updateItripComment(ItripComment itripComment)throws Exception;

	public Integer deleteItripCommentById(@Param(value = "id") Long id)throws Exception;

    public Integer getItripCommentCount(Map<String, Object> map)throws Exception;

	public List<ItripListCommentVO> getItripCommentList(Map<String, Object> map)throws Exception;

	public ItripScoreCommentVO getItripCommentScore(Long hotelId)throws Exception;

}
